package org.softmed.rest.config;

import java.util.ArrayList;
import java.util.List;

import org.softmed.rest.config.Handler;
import org.softmed.rest.config.MimeTypeHandler;

public class HttpMethod {
	Long id;
	// Integer index;

	String name;
	boolean active = true;

	Handler handler;
	List<MimeTypeHandler> mimeTypeHandlers = new ArrayList<MimeTypeHandler>();

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public Handler getHandler() {
		return handler;
	}

	public void setHandler(Handler handler) {
		this.handler = handler;
	}

	public List<MimeTypeHandler> getMimeTypeHandlers() {
		return mimeTypeHandlers;
	}

	public void setMimeTypeHandlers(List<MimeTypeHandler> mimetypeHandlers) {
		this.mimeTypeHandlers = mimetypeHandlers;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	private Object readResolve() {
		mimeTypeHandlers = new ArrayList<MimeTypeHandler>();
		return this;
	}

}
